import request from '@/utils/request'

// 查询文件分发Demo列表
export function listDistribute(query) {
  return request({
    url: '/system/distribute/list',
    method: 'get',
    params: query
  })
}

// 查询文件分发Demo详细
export function getDistribute(id) {
  return request({
    url: '/system/distribute/' + id,
    method: 'get'
  })
}

// 新增文件分发Demo
export function addDistribute(data) {
  return request({
    url: '/system/distribute',
    method: 'post',
    data: data
  })
}

// 修改文件分发Demo
export function updateDistribute(data) {
  return request({
    url: '/system/distribute',
    method: 'put',
    data: data
  })
}

// 删除文件分发Demo
export function delDistribute(id) {
  return request({
    url: '/system/distribute/' + id,
    method: 'delete'
  })
}
